<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>添加栏目</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="/Public/css/mine.css" type="text/css" rel="stylesheet">
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：栏目管理->添加栏目</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="/index.php/admin/cat/column">【栏目列表】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <form action="/index.php/admin/cat/columnadd" method="post" enctype="multipart/form-data">
            <table border="1" width="100%" class="table_a">
                <tr>
                    <td> 上级栏目</td>
                    <td>
                        <select name="pid">
                            <option>请选择</option>
                           
                        <?php if(is_array($cats)): foreach($cats as $key=>$c): if($c['parent_id'] == 0): ?><option value="<?php echo ($c['cat_id']); ?>"><?php echo ($c['cat_name']); ?></option>
                            <?php if(is_array($cats)): foreach($cats as $key=>$c1): if($c1['parent_id'] == $c['cat_id']): ?><option value="<?php echo ($c1['cat_id']); ?>"> &nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($c1['cat_name']); ?></option><?php endif; endforeach; endif; endif; endforeach; endif; ?>
                        </select>
                        <span><font color='red'>此处不选默认添加为顶级栏目</font></span>
                    </td>
                </tr>
                <tr>
                    <td>栏目名称</td>
                    <td><input type="text" name="cat_name" value="" /></td>
                </tr>
  
                <tr>
                    <td>栏目描述</td>
                    <td><input type="text" name="intro" value="" /></td>
                </tr>
                
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="提交">
                    </td>
                </tr>  
            </table>
            </form>
        </div>
    </body>
<!--<script type="text/javascript" src="http://libs.baidu.com/jquery/1.8.2/jquery.min.js"></script>
<script>
   $('option:eq(0)').click(function(){
       alert('xx');
   });   
</script>    -->
</html>